home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
qbasicpg.zip
/
BADBEAR.BAS
< prev
next >
Wrap
BASIC Source File
|
1989-08-31
|
479b
|
23 lines
' BADBEAR.BAS
' This program contains two syntax errors. Can you find them?
CLS
DIMM bears$(5) ' dimension string array
PRINT "Enter the names of your five favorite bears."
PRINT
FOR i% = 1 TO 5 ' get 5 strings
INPUT "Bear: ", bears$(i%)
NET i%
PRINT
PRINT "You entered the following bears:"
PRINT
FOR i% = 1 TO 5 ' print 5 strings
PRINT bears$(i%)
NEXT i%